OneTeamSoftware\WooCommerce\Shipping\Adapter\EasyPost D

Total Complexity 173
Dependencies 0
Dependents 0
Total lines 1,655
Lines of code 1,390
Logical lines of code 378
Comment lines 13
Methods 44
Properties 4

Methods 44

Method Rating Maintainability Complexity Lines of code
initServices()
D
11
1 573
getRatesResponse()
C
36 26 71
getRatesParams()
C
34 25 82
prepareParcelInfo()
A
43 15 46
prepareAddress()
A
44 14 48
setShipmentCacheValues()
A
46 10 42
prepareCustomsInfo()
A
49 10 29
prepareCustomsItem()
S
50 7 26
initPackageTypes()
S
33 1 106
initCarriers()
S
36 1 92
setValidationErrors()
S
59 5 14
validate()
S
57 4 16
prepareCustomsItems()
S
60 4 14
getErrorMessage()
S
63 4 12
getResponse()
S
61 4 11
getRates()
S
57 3 16
__construct()
S
47 1 37
getIntegrationFormFields()
S
51 1 32
getRequestParams()
S
65 3 8
validateActiveApiToken()
S
67 3 7
getRatesCacheKey()
S
64 3 10
getCachedParcelInfo()
S
63 2 10
getCachedCustomsInfo()
S
63 2 10
getServiceName()
S
68 2 7
addHeadersAndParams()
S
77 2 3
getCachedAddress()
S
63 2 10
hasReturnLabelFeature()
S
82 1 3
hasCustomItemsFeature()
S
82 1 3
hasTariffFeature()
S
82 1 3
getServiceId()
S
80 1 3
getServices()
S
82 1 3
getRouteUrl()
S
70 1 6
hasUseSellerAddressFeature()
S
82 1 3
updateFormFields()
S
75 1 4
hasAddressValidationFeature()
S
82 1 3
hasLinkFeature()
S
82 1 3
hasMediaMailFeature()
S
82 1 3
hasInsuranceFeature()
S
82 1 3
hasSignatureFeature()
S
82 1 3
hasDisplayDeliveryTimeFeature()
S
82 1 3
hasUpdateShipmentsFeature()
S
82 1 3
getName()
S
82 1 3
hasCreateShipmentFeature()
S
82 1 3
hasOriginFeature()
S
82 1 3